package com.ruoyi.system.domain;


import com.fasterxml.jackson.annotation.JsonProperty;

@lombok.NoArgsConstructor
@lombok.Data
public class WeatherData {


    @JsonProperty("data")
    private DataDTO data;
    @JsonProperty("msg")
    private String msg;
    @JsonProperty("success")
    private Boolean success;
    @JsonProperty("code")
    private Integer code;
    @JsonProperty("taskNo")
    private String taskNo;

    @lombok.NoArgsConstructor
    @lombok.Data
    public static class DataDTO {
        @JsonProperty("area")
        private String area;
        @JsonProperty("city")
        private String city;
        @JsonProperty("province")
        private String province;
        @JsonProperty("areaId")
        private String areaId;
        @JsonProperty("weather")
        private WeatherDTO weather;

        @lombok.NoArgsConstructor
        @lombok.Data
        public static class WeatherDTO {
            @JsonProperty("date")
            private String date;
            @JsonProperty("night_low_temperature")
            private String nightLowTemperature;
            @JsonProperty("night_wind_direction")
            private String nightWindDirection;
            @JsonProperty("night_weather_pic")
            private String nightWeatherPic;
            @JsonProperty("day_weather_code")
            private String dayWeatherCode;
            @JsonProperty("night_weather_code")
            private String nightWeatherCode;
            @JsonProperty("night_weather")
            private String nightWeather;
            @JsonProperty("life")
            private LifeDTO life;
            @JsonProperty("day_high_temperature")
            private String dayHighTemperature;
            @JsonProperty("day_wind_power")
            private String dayWindPower;
            @JsonProperty("day_weather")
            private String dayWeather;
            @JsonProperty("day_wind_direction")
            private String dayWindDirection;
            @JsonProperty("day_weather_pic")
            private String dayWeatherPic;
            @JsonProperty("night_wind_power")
            private String nightWindPower;
            @JsonProperty("sun_begin_end")
            private String sunBeginEnd;

            @lombok.NoArgsConstructor
            @lombok.Data
            public static class LifeDTO {
                @JsonProperty("uv")
                private UvDTO uv;
                @JsonProperty("aqi")
                private AqiDTO aqi;
                @JsonProperty("clothes")
                private ClothesDTO clothes;
                @JsonProperty("wash_car")
                private WashCarDTO washCar;

                @lombok.NoArgsConstructor
                @lombok.Data
                public static class UvDTO {
                    @JsonProperty("title")
                    private String title;
                    @JsonProperty("desc")
                    private String desc;
                }

                @lombok.NoArgsConstructor
                @lombok.Data
                public static class AqiDTO {
                    @JsonProperty("title")
                    private String title;
                    @JsonProperty("desc")
                    private String desc;
                }

                @lombok.NoArgsConstructor
                @lombok.Data
                public static class ClothesDTO {
                    @JsonProperty("title")
                    private String title;
                    @JsonProperty("desc")
                    private String desc;
                }

                @lombok.NoArgsConstructor
                @lombok.Data
                public static class WashCarDTO {
                    @JsonProperty("title")
                    private String title;
                    @JsonProperty("desc")
                    private String desc;
                }
            }
        }
    }
}
